import {
	defineConfig
} from "vite"
import uni from "@dcloudio/vite-plugin-uni";

export default defineConfig({
	plugins: [
		uni(),
	],
	server: {
		proxy: {
			'/aiApi': {
				"target": "http://101.43.59.195:61029/chatbot/open-ai",
				changeOrigin: true,
				secure: false,
				ws: true,
				rewrite: path => {
					return path.replace(/^\/aiApi/, '')
				}
			},
		}
	},
})